package com.example.repo;

import com.example.entity.data.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AccountRepository extends JpaRepository<Account,Integer> {
    Account findAccountByUsername(String username);
    Account findAccountByUsernameLike(String username);
    Account findByIdAndUsername(int id,String username);
    boolean existsById(int id);
    boolean existsByUsername(String username);
}
